<template>
  <div>页面一
    <ul>
      <li>onRouterShow 次数：{{a}}</li>
      <li>onRouterHide 次数：{{b}}</li>
    </ul>
  </div>
</template>

<script>
export default {
  data(){
    return {
      a:0,
      b:0
    };
  },
  created(){
    this.onRouterShow = ()=>{
      this.a++;
    }
    this.onRouterHide = ()=>{
      this.b++;
    }
  }
}
</script>

<style>

</style>
